// import 'scss'

// import './App.css';
import { useState } from "react"
import { NavLink, useRoutes } from "react-router-dom"
import routes from "./router/index"
function App () {
  // 根据路由表生成对应的路由规则
  const ElementRouter = useRoutes(routes)

  const [items] = useState([
    { path: "/home", title: "首页" },
    { path: "/friend", title: "好友" },
    { path: "/setting", title: "设置" },
  ])

  return (
    <div className="app" style={{ height: 100 + '%' }}>

      {/* 注册路由 */}

      {ElementRouter}
    </div>
  )
}

export default App
